package com.javademos.train.dynamicdatasource.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author 踩坑填坑
 * @Description: [ 示例Entity ]
 * @Email: 120987555@qq.com
 * @Date: 2017年9月21日 下午4:14:44
 * @Version: V1.0
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "demo_entity")
public class DemoEntity implements Serializable {

    @Id
    @GeneratedValue
    private long id;

    private String name;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Demo [id=" + id + ", name=" + name + "]";
    }
}